#
# Copyright xgliu515@gmail.com
#

include $(NK_ROOT)/macro.mk

TYPE := oss
NAME := linux
VERSION := 3.1.5
DIR := ${NAME}-${VERSION}
SOURCE := $(NAME)-$(VERSION).tar.bz2
URL := http://www.kernel.org/pub/linux/kernel/v3.0/$(SOURCE)
DECOMPRESS := tar -jxf
BUILD := cd $(DIR); \
	if [ ! -e .config ]; then \
		cp ../config-x86_64 .config; \
	fi; \
	cat /dev/null > .initramfs.list; \
	make -j 5;
INSTALL := rm -fr $(NK_KERNEL); \
	ln -sf `pwd`/$(DIR) $(NK_KERNEL); \
	export INSTALL_MOD_PATH=$(NK_RAMDISK); \
	make -C `pwd`/$(DIR) modules_install;
CLEAN := echo "cleaning ...";
# CLEAN := cd $(DIR); make mrproper;

all: build

include $(NK_ROOT)/rule.mk

